package com.lipy.java8study.regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @Description TODO
 * @Date 2021/1/6 11:02
 * @Author by lipye
 */
public class RegexTest {
    static Pattern pattern = Pattern.compile("<.+?>", Pattern.DOTALL);
    public static void main(String[] args) {

        Matcher matcher = pattern.matcher("<a href=\"index.html\">主页</a>");
        String string = matcher.replaceAll("");
        System.out.println(string);
    }
}
